package com.xy.servicemanage.service.impl;
import java.util.List;

import com.ruoyi.common.core.domain.servicemanage.ServiceSpecifications;
import com.ruoyi.common.core.mapper.servicemanager.ServiceSpecificationsMapper;
import com.xy.servicemanage.service.IServiceSpecificationsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【请填写服务规格】Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-23
 */
@Service
public class ServiceSpecificationsServiceImpl implements IServiceSpecificationsService
{
    @Autowired
    private ServiceSpecificationsMapper serviceSpecificationsMapper;

    /**
     * 查询【请填写服务规格】
     *
     * @param id 【请填写服务规格】主键
     * @return 【请填写服务规格】
     */
    @Override
    public ServiceSpecifications selectServiceSpecificationsById(Long id)
    {
        return serviceSpecificationsMapper.selectServiceSpecificationsById(id);
    }

    /**
     * 查询【请填写服务规格】列表
     *
     * @param serviceSpecifications 【请填写服务规格】
     * @return 【请填写服务规格】
     */
    @Override
    public List<ServiceSpecifications> selectServiceSpecificationsList(ServiceSpecifications serviceSpecifications)
    {
        return serviceSpecificationsMapper.selectServiceSpecificationsList(serviceSpecifications);
    }

    /**
     * 新增【请填写服务规格】
     *
     * @param serviceSpecifications 【请填写服务规格】
     * @return 结果
     */
    @Override
    public int insertServiceSpecifications(ServiceSpecifications serviceSpecifications)
    {
        return serviceSpecificationsMapper.insertServiceSpecifications(serviceSpecifications);
    }

    /**
     * 修改【请填写服务规格】
     *
     * @param serviceSpecifications 【请填写服务规格】
     * @return 结果
     */
    @Override
    public int updateServiceSpecifications(ServiceSpecifications serviceSpecifications)
    {
        return serviceSpecificationsMapper.updateServiceSpecifications(serviceSpecifications);
    }

    /**
     * 批量删除【请填写服务规格】
     *
     * @param ids 需要删除的【请填写服务规格】主键
     * @return 结果
     */
    @Override
    public int deleteServiceSpecificationsByIds(Long[] ids)
    {
        return serviceSpecificationsMapper.deleteServiceSpecificationsByIds(ids);
    }

    /**
     * 删除【请填写服务规格】信息
     *
     * @param id 【请填写服务规格】主键
     * @return 结果
     */
    @Override
    public int deleteServiceSpecificationsById(Long id)
    {
        return serviceSpecificationsMapper.deleteServiceSpecificationsById(id);
    }
}
